<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@page import="java.io.BufferedReader"%>
<%@page import="java.io.InputStreamReader"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<title>汽车配件管理系统</title>  
	<link rel="stylesheet" type="text/css" href="./js/jquery/easyui.css">
	<link rel="stylesheet" type="text/css" href="./js/jquery/icon.css">
	<script type="text/javascript" src="./js/jquery/jquery-1.6.min.js"></script>
	<script type="text/javascript" src="./js/jquery/jquery.easyui.min.js"></script>
	
	<script language="javascript"> 
	    function addTab(title, href){
	    	var main = $('#main-center')
	    	if (main.tabs('exists', title)){
			    	main.tabs('close', title);
		    } 
	    	if (href){
		    	var content = '<iframe frameborder="0" src="'+href+'" style="width:100%; height:100%; overflow: scroll-y;"></iframe>';
	    	} else {
		    	var content = '未实现';
	    	}
	    	main.tabs('add',{
		    	title:title,
		    	closable:true,
		    	content:content,
		    	border:	false,
		    	fit:false,
		    	icon:'icon-add',
		    	cache:false
	    	});
    	}
    	
	</script> 
	<style type="text/css">
		.menu{
			text-align:center;
			background:#fff;
			height:80px;
		}
		.menu img{
			border:0;
		}
		a:link {
			text-decoration: none;
			color: #1B5978;
		}
		a:visited {
			text-decoration: none;
			color: #1B5978;
		}
		a:hover {
			text-decoration: underline;
			color: red;
		}
		p{
			line-height:200%;
		}
		.menu {
			font-size:12px;
		}
		
		#top {
			background-image: url("<%= request.getContextPath()%>/images/top-bg11.jpg") !important;
			background-repeat: repeat-x;
		}
		
		*{
			font-size:12px;
		}
	</style>
</head>
<body class="easyui-layout">
		<div id="top" region="north" split="false" style="overflow: hidden; height:91px;" \>
			<iframe height="100%" width="100%" frameborder="0" scrolling="no" src="<%=request.getContextPath() %>/common/head.jsp" ></iframe>
		</div>
		
		<div region="west" split="false" title="导航菜单" style="width:168px; overflow: hidden; " icon='icon-menu'>
			<iframe height="100%" width="100%" frameborder="0" scrolling="no" src="<%=request.getContextPath() %>/common/menu.jsp" ></iframe>
		</div>
		<div region="center" title="工作区" style="padding1:5px;background:#aaa;" icon='icon-window' >
			<div id="main-center" class="easyui-tabs" fit="true" border="false">
				<div title="系统参数" icon="icon-reload" style="padding:20px; overflow: scroll-y" > 
					<div style="margin-top:20px;">
					</div>
					<div style="width: 95%; height: 95%">
						<table>
							<tr>
								<td>
									<% 
										Process proc = Runtime.getRuntime().exec("cmd /c echo %SystemRoot%");  
										BufferedReader reader = new BufferedReader(new InputStreamReader(proc.getInputStream())); 
										String systemPath = reader.readLine().trim(); 
									 %>
									<div id="p" class="easyui-panel" style="width:500px;height:200px;padding:10px; float: left; "
											title="运行参数" iconCls="icon-save"
											collapsible="false" minimizable="false"
											maximizable="false" closable="true">
										<p>
											<span style="color: red">操作系统:</span>
											<br>
											名称
										<%=System.getProperty("os.name") %>&nbsp;&nbsp;
											架构
										<%=System.getProperty("os.arch") %>&nbsp;&nbsp;
											版本
										<%=System.getProperty("os.version") %>
										</p>
										<p>
											<span style="color: red">JDK：</span> 
											<br>
											版本
										<%=System.getProperty("java.version") %>&nbsp;&nbsp;
											供应商
										<%=System.getProperty("java.vendor") %>&nbsp;&nbsp;
											URL
										<%=System.getProperty("java.vendor.url") %>
										</p>
									</div>
								</td>
								<td>
									<div id="p" class="easyui-panel" style="width:500px;height:200px;padding:10px; float: left; "
											title="工作日志" iconCls="icon-save"
											collapsible="false" minimizable="false"
											maximizable="false" closable="true">
										<p>无
										</p>
									</div>
								</td>
							</tr>
							<tr>
								<td>
									<div id="p" class="easyui-panel" style="width:500px;height:200px;padding:10px; float: left; "
											title="系统配置" iconCls="icon-save"
											collapsible="false" minimizable="false"
											maximizable="false" closable="true">
										<p>
											
										</p>
									</div>
								</td>
								<td>
									<div id="p" class="easyui-panel" style="width:500px;height:200px;padding:10px; float: left; "
											title="登陆日志" iconCls="icon-save"
											collapsible="false" minimizable="false"
											maximizable="false" closable="true">
										<p>
											2011-10-09 12:30:40 系统登入  <br>
											2011-10-09 12:30:50 系统登出 <br>
											2011-10-09 12:30:40 系统登入 <br>
											2011-10-09 13:31:40 系统登出 <br>
											2011-10-19 12:30:40 系统登入 <br>
											2011-12-28 08:31:40 系统异常退出 <br>
										</p>
									</div>
								</td>
							</tr>
						</table>
					</div>
				</div>
			</div>
		</div>
  </body>
</html>
